package ogs.lib.mina.core.service
{
	import flash.utils.getQualifiedClassName;
	
	import org.osflash.thunderbolt.Logger;
	
	public class IoHandlerAdapter implements IoHandler
	{
		protected var connector:IoConnector = null;
		
		public function IoHandlerAdapter(connector:IoConnector)
		{
			this.connector = connector;
		}
		
		public function sessionOpened():void
		{
		}
		
		public function sessionClosed():void
		{
		}
		
		public function exceptionCaught(cause:Error):void
		{
			Logger.warn("EXCEPTION, please implement "
				+ getQualifiedClassName(this) 
				+ ".exceptionCaught() for proper handling:", cause.message);
		}
		
		public function messageReceived(message:Object):void
		{
		}
		
	}
}